import sys, os

source="comExpert"
dir=".";

if len(sys.argv) > 1:
	source=sys.argv[1]
	
if len(sys.argv) > 2:
	dir=sys.argv[2];

files=os.listdir(dir);

for filename in files:
	filename=dir+"/"+filename;
	if os.system("file "+filename+" | grep text > /dev/null") == False:
		file=open(filename, "r")
		text=file.read()
		if text.find(source) != -1:
			print filename
		file.close()